package homework15;

public class figure {

    private int blood_Volume;//血量
    private int magic;//魔力
    private int velocity;//速度
    private double critical_Strike_Chance;//暴击记录
    private double attack_speed;//攻击速度
    private int grade;//人物等级;
    private int stale;//人物状态

    //升级
    public void upgrade() {
        grade = grade + 1;
    }

    //死亡
    public void death() {
        stale = 0;
        System.out.println("玩家死亡 +");
    }

    //改变血量
    protected void upBlood(int blood) {
        this.blood_Volume = this.blood_Volume + blood;
    }
    //改变魔力

    public void upMagic(int magic) {
        this.magic = magic + this.magic;
    }

    //不允许被继承
    private void resurrection() {
        stale = 1;
    }

    public figure(int blood_Volume, int magic, int velocity, double critical_Strike_Chance, double attack_speed, int grade) {

        this.blood_Volume = blood_Volume;
        this.magic = magic;
        this.velocity = velocity;
        this.critical_Strike_Chance = critical_Strike_Chance;
        this.attack_speed = attack_speed;
        this.grade = grade;
        this.stale = 1;
    }

    public figure() {
    }

    @Override
    public String toString() {
        return "figure{" +
                "blood_Volume=" + blood_Volume +
                ", magic=" + magic +
                ", velocity=" + velocity +
                ", critical_Strike_Chance=" + critical_Strike_Chance +
                ", attack_speed=" + attack_speed +
                ", grade=" + grade +
                '}';
    }

    public int getBlood_Volume() {
        return blood_Volume;
    }

    public void setBlood_Volume(int blood_Volume) {
        this.blood_Volume = blood_Volume;
    }

    public int getMagic() {
        return magic;
    }

    public void setMagic(int magic) {
        this.magic = magic;
    }

    public int getVelocity() {
        return velocity;
    }

    public void setVelocity(int velocity) {
        this.velocity = velocity;
    }

    public int getStale() {
        return stale;
    }

    public void setStale(int stale) {
        this.stale = stale;
    }

    public double getCritical_Strike_Chance() {
        return critical_Strike_Chance;
    }

    public void setCritical_Strike_Chance(double critical_Strike_Chance) {
        this.critical_Strike_Chance = critical_Strike_Chance;
    }

    public double getAttack_speed() {
        return attack_speed;
    }

    public void setAttack_speed(double attack_speed) {
        this.attack_speed = attack_speed;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(int grade) {
        this.grade = grade;
    }
}
